&lt;!--
@author     Yi Bo &lt;etng2004@gmail.com&gt;
@version    $Id: view.php 41 2007-09-03 02:06:05Z etng2004 $
@copyrithg  2006-2007 ETE.CN
@license    PHP Version 3.0 {@link http://www.php.net/license/3_0.txt}
--&gt;
&lt;?php
$this-&gt;declareVars();
echo $this-&gt;render('header.php');
require_once(dirname(__FILE__) . '/_meta_<?php echo $this->controller_name;?>.php');
/*$this-&gt;dump($this-&gt;<?php echo $this->single_object ?>);*/
$<?php echo $this->single_object ?> = $this-&gt;<?php echo $this->single_object ?>;
?&gt;
&lt;h3&gt;
&lt;a href="&lt;?php echo $this-&gt;base_url;?&gt;/view/id/&lt;?php echo $<?php echo $this->single_object ?>['id']; ?&gt;"&gt;&lt;?php echo $<?php echo $this->single_object ?>['title']; ?&gt;&lt;/a&gt;
&lt;/h3&gt;
&lt;?php echo date('Y-m-d', $<?php echo $this->single_object ?>['created_at']); ?&gt;
&lt;
<table cellpadding="0" cellspacing="0" border="0" class="tblborder">
<?php
foreach ($this->meta['cols'] as $field):
?>
	<tr class="tblbody" >
		<td>&lt;?php echo $meta['<?php echo $this->single_object ?>']['fields']['<?php echo $field; ?>'];?&gt;</td><td>&lt;?php echo $<?php echo $this->single_object ?>['<?php echo $field; ?>'];?&gt;</td>
	</tr>
<?php
endforeach;
?>
	<tr class="tblfoot">
	<td colspan="2">
	&lt;a href="&lt;?php echo $this-&gt;base_url;?&gt;/edit/id/&lt;?php echo $<?php echo $this->single_object ?>['id']; ?&gt;"&gt;编辑&lt;/a&gt;
&lt;a href="&lt;?php echo $this-&gt;base_url;?&gt;/remove/id/&lt;?php echo $<?php echo $this->single_object ?>['id']; ?&gt;"&gt;删除&lt;/a&gt;
	</td>
	</tr>
</table>
&lt;?php
echo $this-&gt;render('footer.php');
?&gt;